#include "bandpassfilter_cofficient.h"

bandpassfilter_pDelayLinkList bandpassfilter_pDelay[8];     // 用于存储每个通道过去时刻滤波后的结果
bool BandPassFilterStatus = false;                          // FIR带通滤波状态标志
uint16_t FIR_Bandpassfilter_FilterLength = 867;             // FIR带通滤波器阶数
double   FIR_Bandpassfilter_Coefficient[867] =              // FIR带通滤波器权重系数
{
    -2.159509499299e-06,-3.409395974724e-06,-4.197432244674e-06,-4.20192725526e-06,
    -3.370874617167e-06,-1.980110233704e-06,-5.671379176015e-07,2.484657561087e-07,
    -1.386565374155e-20,-1.423309705503e-06,-3.689820853184e-06,-6.103389109826e-06,
    -7.833551991894e-06,-8.224187754592e-06,-7.067900643233e-06,-4.734928834006e-06,
    -2.090915730816e-06,-2.138538003801e-07,-3.142097840574e-21,-1.800710705254e-06,
    -5.233918862656e-06,-9.259943622206e-06,-1.251737502359e-05,-1.38138211328e-05,
    -1.259691958815e-05,-9.222906665082e-06,-4.901719800753e-06,-1.311295208702e-06,
    1.185309152968e-21,-1.787430710786e-06,-6.392088454982e-06,-1.244667577937e-05,
    -1.792695170889e-05,-2.086449224427e-05,-2.009522197298e-05,-1.576240593594e-05,
    -9.364203078374e-06,-3.292669376149e-06,-1.860429947731e-20,-1.079324278478e-06,
    -6.601120774678e-06,-1.497469990783e-05,-2.342528204787e-05, -2.8951119009e-05,
    -2.943418197209e-05,-2.449694205538e-05,-1.576502136128e-05,-6.395814454452e-06,
    8.343478024969e-20,6.800485564331e-07,-5.144962487896e-06,-1.588615585852e-05,
    -2.801402745398e-05,-3.725096016598e-05,  -4.012074908e-05,-3.529771085094e-05,
    -2.423758760632e-05,-1.080888071489e-05,1.015916471068e-19,3.871740536286e-06,
    -1.189370282605e-06,-1.397251798047e-05,-3.031773994818e-05,-4.448806902079e-05,
    -5.121085116729e-05,-4.766643492021e-05,-3.467973398048e-05,-1.662424584362e-05,
    6.580327843953e-19,8.860888160571e-06,6.156415623057e-06,-7.830696969252e-06,
    -2.860961959961e-05,-4.891472348596e-05,-6.124857629471e-05,-6.065016929504e-05,
    -4.667193598182e-05,-2.37883269584e-05, -1.2649780398e-19,1.594432083464e-05,
    1.775028993487e-05,4.038592740693e-06,-2.088785919597e-05,-4.834266174512e-05,
    -6.824554893682e-05,-7.278125327415e-05,-5.940558474522e-05,-3.205181966692e-05,
    -4.541033405075e-19,2.528885060824e-05,3.430239752379e-05,2.308929310994e-05,
    -5.008282031022e-06,-4.023461012544e-05,-6.971401340885e-05,-8.205603649531e-05,
    -7.163198210321e-05,-4.092593286339e-05,8.341227629682e-19,3.686439077521e-05,
    5.624020390796e-05,5.054877708392e-05,2.112566679724e-05,-2.186265725866e-05,
    -6.276462149297e-05,-8.59650999041e-05,-8.164303786693e-05,-4.965085065392e-05,
    5.243280087197e-19,5.037754507612e-05,8.356231228071e-05,8.720532790289e-05,
     5.93201889716e-05,9.465355978446e-06,-4.427577798988e-05,-8.158529945615e-05,
    -8.72938871301e-05,-5.718280678184e-05,3.091890423113e-18,6.521251650185e-05,
    0.0001156928990563,0.0001331777056408, 0.000110806564582,5.611678666315e-05,
    -1.113578161447e-05,-6.574008095766e-05,-8.607571879186e-05,-6.220570268501e-05,
    -6.036091394359e-19,8.038693613806e-05,0.0001513511145142,0.0001876847731147,
    0.0001759320190054,0.0001197950271724,3.944776101884e-05,-3.522930099559e-05,
    -7.524402281761e-05,-6.317208683214e-05,2.361934299399e-18,9.453036116139e-05,
    0.0001884513215534, 0.000248836820066,0.0002538491244128,0.0002011700226378,
    0.0001095841802059,1.287644798939e-05,-5.200335020914e-05,-5.837654933502e-05,
    1.695210979645e-18,0.0001058926308786,0.0002240503304555,0.0003134724695891,
    0.0003422314682383,0.0002995048614604,0.0002003020109535, 8.08888139551e-05,
    -1.374478493883e-05,-4.606224795824e-05,8.093155653479e-19,0.0001123879513961,
    0.0002543566225317,0.0003770654505139,0.0004370461389158,0.0004123100550433,
      0.00031114438875,0.0001701205633686,4.167298851622e-05,-2.455851304953e-05,
    -1.421341133124e-19, 0.000111678522937,0.0002748138488358,0.0004337237773534,
    0.0005324140592005, 0.000535060278129,0.0004397899871543,0.0002804950978361,
    0.0001156134252655,7.555515301923e-06,1.717801584316e-18,0.0001012988243353,
     0.000280266690028,0.0004762998710906,0.0006205869778486,0.0006610088496707,
    0.0005817350909667,0.0004101761517993,0.0002083418231189, 5.12692302505e-05,
    -1.207920131881e-19, 7.88184975556e-05,0.0002652116703947,0.0004966239597576,
    0.0006920648652062,0.0007811326987673,0.0007300728679039,0.0005552500589927,
    0.0003187178409164, 0.000106951545977,-6.074890909328e-19, 4.20383700083e-05,
    0.0002241290844111,0.0004858650185863,0.0007358696551428,0.0008842348227735,
    0.0008754032605363,0.0007094933328037, 0.000443925836355,0.0001741672408308,
    -7.496000491113e-19,-1.078919325158e-05,0.0001518853054835,0.0004350140645651,
    0.0007399811143439,0.0009572224260022, 0.001005901005992,0.0008642558090891,
    0.0005792682229206,0.0002515125293705,3.309752694503e-19,-8.072737447935e-05,
    4.418799900591e-05,0.0003354745239683,0.0006919287457512,0.0009855674431693,
     0.001107560212837, 0.001008484088096,0.0007180449895296,0.0003364837803975,
    -3.087484041246e-18,-0.0001679234264704,-0.0001019291790853,0.0001797345131272,
    0.0005795209273501,0.0009539427015988, 0.001164622073757, 0.001128901553476,
    0.0008515380705076,0.0004253920450518,-9.41506916814e-18,-0.0002713938176337,
    -0.0002876202593619,-3.79128170026e-05,0.0003916800160096,0.0008470125049163,
     0.001160178322116, 0.001210350137903,0.0009691124050353,0.0005133334023704,
     3.65784699392e-18,-0.0003888410176779,-0.0005117691381435,-0.000320641209893,
    0.0001193410905859,0.0006503420527764, 0.001076927812155, 0.001236285737333,
     0.001058436431956,0.0005942210296927,-3.630740901215e-18,-0.0005165151748932,
    -0.000770589837632,-0.0006683991252931,-0.0002436364062056, 0.000351377062544,
    0.0008980480986258, 0.001189404358796, 0.001105813664465,0.0006608793661487,
    1.935077899815e-18,-0.000649130339307,-0.001057310467828,  -0.0010772961781,
    -0.0006995994375282,-5.956556406524e-05,0.0006081290868969, 0.001052360317663,
     0.001096604101464,0.0007051937518175,-7.54263765226e-18,-0.0007798392206315,
    -0.001361958529578,-0.001539104878805,-0.001246329435921,-0.0005883620964958,
    0.0001941025081262,0.0008085214568984, 0.001015699578949,0.0007183003648707,
                     0,-0.0009002623789693,-0.001671252401546,-0.002040902068493,
    -0.001876415969492,-0.001236269854517,-0.000353910505258,0.0004426892532663,
    0.0008480002319129,0.0006907906884523,-1.234203004286e-17,-0.001000556538796,
    -0.001968584915199, -0.00256485429414,-0.002576810267678,-0.001999304523855,
    -0.001041921602213,-5.830756301041e-05,0.0005788183538754,0.0006128909335206,
    -3.650795099983e-18,-0.001069490922045,-0.002234057216245,-0.003088120467894,
    -0.003328569313174,-0.002867865045791,-0.001871665842801,-0.0007052623377988,
    0.0001941070357818,0.0004745570900551,-1.466596651146e-17,-0.001094476920836,
    -0.002444479077068,-0.003582797543563,-0.004106764295541,-0.003826651514047,
    -0.002840576013627,-0.001506638717492,-0.000319635097403,0.0002653945134974,
    -4.878344988835e-18,-0.001061458064598,-0.002573183285713,-0.004015757618124,
    -0.004880468557481,-0.004854904560274,-0.003942289329143,-0.002469246582292,
    -0.0009760152927152,-2.574635769078e-05,                 0,-0.0009544983071423,
    -0.002589379141072,-0.004348088169492,-0.005612640310311,-0.005926974577876,
    -0.005167910717561,-0.003599924020942,-0.001790354255052,-0.0004117607573059,
    -1.504034260219e-18,-0.0007547700883161,-0.002456528124503, -0.00453358006001,
    -0.006259526978187,-0.007013207206575,-0.006508433984443,-0.004908934175174,
    -0.002783015921479,-0.000909377630106,                 0,-0.0004383465247595,
    -0.002128698331871,-0.004515128941303,-0.006768818072117,-0.008081109373675,
    -0.007959153987227,-0.006416569731451,-0.003986090570145, -0.00154344386431,
    3.192680665454e-18,2.850875052931e-05,-0.001542588133975,-0.004216518813872,
    -0.007074814382979,-0.009096739545983,-0.009528025915596, -0.00816648302528,
     -0.00545730797516,-0.002356041896964,-8.990428117333e-18,0.0006997546926844,
    -0.0005995026084017,-0.003523262801209,-0.007086262200829, -0.01002624832174,
     -0.01125315444727,  -0.0102551167652,-0.007311625718337,-0.003427635515729,
     7.50210917703e-18, 0.001674660579114,0.0008789683123422,-0.002234268874002,
    -0.006654164084714, -0.01083748252864, -0.01324531809915, -0.01290638521582,
    -0.009803516654969,-0.004933406486655,-5.080650336912e-18, 0.003167596609851,
     0.003277093736402,7.929335741261e-05,-0.005474360345121, -0.01150155872121,
     -0.01581549152359,  -0.0167041519503, -0.01359086890917,-0.007329210975254,
    5.997601131283e-18, 0.005752593997336, 0.007641466464634, 0.004602649806281,
    -0.002707805732189, -0.01199431109994, -0.02000014564396, -0.02359550762491,
      -0.0209276107658,  -0.0122337668833,8.635410229428e-19,  0.01165592649926,
      0.01824531372824,   0.0164527601324, 0.005476652115985, -0.01229752463175,
     -0.03157817477396,  -0.0454085873329, -0.04707107931406, -0.03212870514425,
    1.820550468975e-17,  0.04543499018077,  0.09643839301791,   0.1431240217563,
       0.1758419739542,   0.1875981277344,   0.1758419739542,   0.1431240217563,
      0.09643839301791,  0.04543499018077,1.820550468975e-17, -0.03212870514425,
     -0.04707107931406,  -0.0454085873329, -0.03157817477396, -0.01229752463175,
     0.005476652115985,   0.0164527601324,  0.01824531372824,  0.01165592649926,
    8.635410229428e-19,  -0.0122337668833,  -0.0209276107658, -0.02359550762491,
     -0.02000014564396, -0.01199431109994,-0.002707805732189, 0.004602649806281,
     0.007641466464634, 0.005752593997336,5.997601131283e-18,-0.007329210975254,
     -0.01359086890917,  -0.0167041519503, -0.01581549152359, -0.01150155872121,
    -0.005474360345121,7.929335741261e-05, 0.003277093736402, 0.003167596609851,
    -5.080650336912e-18,-0.004933406486655,-0.009803516654969, -0.01290638521582,
     -0.01324531809915, -0.01083748252864,-0.006654164084714,-0.002234268874002,
    0.0008789683123422, 0.001674660579114, 7.50210917703e-18,-0.003427635515729,
    -0.007311625718337,  -0.0102551167652, -0.01125315444727, -0.01002624832174,
    -0.007086262200829,-0.003523262801209,-0.0005995026084017,0.0006997546926844,
    -8.990428117333e-18,-0.002356041896964, -0.00545730797516, -0.00816648302528,
    -0.009528025915596,-0.009096739545983,-0.007074814382979,-0.004216518813872,
    -0.001542588133975,2.850875052931e-05,3.192680665454e-18, -0.00154344386431,
    -0.003986090570145,-0.006416569731451,-0.007959153987227,-0.008081109373675,
    -0.006768818072117,-0.004515128941303,-0.002128698331871,-0.0004383465247595,
                     0,-0.000909377630106,-0.002783015921479,-0.004908934175174,
    -0.006508433984443,-0.007013207206575,-0.006259526978187, -0.00453358006001,
    -0.002456528124503,-0.0007547700883161,-1.504034260219e-18,-0.0004117607573059,
    -0.001790354255052,-0.003599924020942,-0.005167910717561,-0.005926974577876,
    -0.005612640310311,-0.004348088169492,-0.002589379141072,-0.0009544983071423,
                     0,-2.574635769078e-05,-0.0009760152927152,-0.002469246582292,
    -0.003942289329143,-0.004854904560274,-0.004880468557481,-0.004015757618124,
    -0.002573183285713,-0.001061458064598,-4.878344988835e-18,0.0002653945134974,
    -0.000319635097403,-0.001506638717492,-0.002840576013627,-0.003826651514047,
    -0.004106764295541,-0.003582797543563,-0.002444479077068,-0.001094476920836,
    -1.466596651146e-17,0.0004745570900551,0.0001941070357818,-0.0007052623377988,
    -0.001871665842801,-0.002867865045791,-0.003328569313174,-0.003088120467894,
    -0.002234057216245,-0.001069490922045,-3.650795099983e-18,0.0006128909335206,
    0.0005788183538754,-5.830756301041e-05,-0.001041921602213,-0.001999304523855,
    -0.002576810267678, -0.00256485429414,-0.001968584915199,-0.001000556538796,
    -1.234203004286e-17,0.0006907906884523,0.0008480002319129,0.0004426892532663,
    -0.000353910505258,-0.001236269854517,-0.001876415969492,-0.002040902068493,
    -0.001671252401546,-0.0009002623789693,                 0,0.0007183003648707,
     0.001015699578949,0.0008085214568984,0.0001941025081262,-0.0005883620964958,
    -0.001246329435921,-0.001539104878805,-0.001361958529578,-0.0007798392206315,
    -7.54263765226e-18,0.0007051937518175, 0.001096604101464, 0.001052360317663,
    0.0006081290868969,-5.956556406524e-05,-0.0006995994375282,  -0.0010772961781,
    -0.001057310467828,-0.000649130339307,1.935077899815e-18,0.0006608793661487,
     0.001105813664465, 0.001189404358796,0.0008980480986258, 0.000351377062544,
    -0.0002436364062056,-0.0006683991252931,-0.000770589837632,-0.0005165151748932,
    -3.630740901215e-18,0.0005942210296927, 0.001058436431956, 0.001236285737333,
     0.001076927812155,0.0006503420527764,0.0001193410905859,-0.000320641209893,
    -0.0005117691381435,-0.0003888410176779, 3.65784699392e-18,0.0005133334023704,
    0.0009691124050353, 0.001210350137903, 0.001160178322116,0.0008470125049163,
    0.0003916800160096,-3.79128170026e-05,-0.0002876202593619,-0.0002713938176337,
    -9.41506916814e-18,0.0004253920450518,0.0008515380705076, 0.001128901553476,
     0.001164622073757,0.0009539427015988,0.0005795209273501,0.0001797345131272,
    -0.0001019291790853,-0.0001679234264704,-3.087484041246e-18,0.0003364837803975,
    0.0007180449895296, 0.001008484088096, 0.001107560212837,0.0009855674431693,
    0.0006919287457512,0.0003354745239683,4.418799900591e-05,-8.072737447935e-05,
    3.309752694503e-19,0.0002515125293705,0.0005792682229206,0.0008642558090891,
     0.001005901005992,0.0009572224260022,0.0007399811143439,0.0004350140645651,
    0.0001518853054835,-1.078919325158e-05,-7.496000491113e-19,0.0001741672408308,
     0.000443925836355,0.0007094933328037,0.0008754032605363,0.0008842348227735,
    0.0007358696551428,0.0004858650185863,0.0002241290844111, 4.20383700083e-05,
    -6.074890909328e-19, 0.000106951545977,0.0003187178409164,0.0005552500589927,
    0.0007300728679039,0.0007811326987673,0.0006920648652062,0.0004966239597576,
    0.0002652116703947, 7.88184975556e-05,-1.207920131881e-19, 5.12692302505e-05,
    0.0002083418231189,0.0004101761517993,0.0005817350909667,0.0006610088496707,
    0.0006205869778486,0.0004762998710906, 0.000280266690028,0.0001012988243353,
    1.717801584316e-18,7.555515301923e-06,0.0001156134252655,0.0002804950978361,
    0.0004397899871543, 0.000535060278129,0.0005324140592005,0.0004337237773534,
    0.0002748138488358, 0.000111678522937,-1.421341133124e-19,-2.455851304953e-05,
    4.167298851622e-05,0.0001701205633686,  0.00031114438875,0.0004123100550433,
    0.0004370461389158,0.0003770654505139,0.0002543566225317,0.0001123879513961,
    8.093155653479e-19,-4.606224795824e-05,-1.374478493883e-05, 8.08888139551e-05,
    0.0002003020109535,0.0002995048614604,0.0003422314682383,0.0003134724695891,
    0.0002240503304555,0.0001058926308786,1.695210979645e-18,-5.837654933502e-05,
    -5.200335020914e-05,1.287644798939e-05,0.0001095841802059,0.0002011700226378,
    0.0002538491244128, 0.000248836820066,0.0001884513215534,9.453036116139e-05,
    2.361934299399e-18,-6.317208683214e-05,-7.524402281761e-05,-3.522930099559e-05,
    3.944776101884e-05,0.0001197950271724,0.0001759320190054,0.0001876847731147,
    0.0001513511145142,8.038693613806e-05,-6.036091394359e-19,-6.220570268501e-05,
    -8.607571879186e-05,-6.574008095766e-05,-1.113578161447e-05,5.611678666315e-05,
     0.000110806564582,0.0001331777056408,0.0001156928990563,6.521251650185e-05,
    3.091890423113e-18,-5.718280678184e-05,-8.72938871301e-05,-8.158529945615e-05,
    -4.427577798988e-05,9.465355978446e-06, 5.93201889716e-05,8.720532790289e-05,
    8.356231228071e-05,5.037754507612e-05,5.243280087197e-19,-4.965085065392e-05,
    -8.164303786693e-05,-8.59650999041e-05,-6.276462149297e-05,-2.186265725866e-05,
    2.112566679724e-05,5.054877708392e-05,5.624020390796e-05,3.686439077521e-05,
    8.341227629682e-19,-4.092593286339e-05,-7.163198210321e-05,-8.205603649531e-05,
    -6.971401340885e-05,-4.023461012544e-05,-5.008282031022e-06,2.308929310994e-05,
    3.430239752379e-05,2.528885060824e-05,-4.541033405075e-19,-3.205181966692e-05,
    -5.940558474522e-05,-7.278125327415e-05,-6.824554893682e-05,-4.834266174512e-05,
    -2.088785919597e-05,4.038592740693e-06,1.775028993487e-05,1.594432083464e-05,
     -1.2649780398e-19,-2.37883269584e-05,-4.667193598182e-05,-6.065016929504e-05,
    -6.124857629471e-05,-4.891472348596e-05,-2.860961959961e-05,-7.830696969252e-06,
    6.156415623057e-06,8.860888160571e-06,6.580327843953e-19,-1.662424584362e-05,
    -3.467973398048e-05,-4.766643492021e-05,-5.121085116729e-05,-4.448806902079e-05,
    -3.031773994818e-05,-1.397251798047e-05,-1.189370282605e-06,3.871740536286e-06,
    1.015916471068e-19,-1.080888071489e-05,-2.423758760632e-05,-3.529771085094e-05,
      -4.012074908e-05,-3.725096016598e-05,-2.801402745398e-05,-1.588615585852e-05,
    -5.144962487896e-06,6.800485564331e-07,8.343478024969e-20,-6.395814454452e-06,
    -1.576502136128e-05,-2.449694205538e-05,-2.943418197209e-05, -2.8951119009e-05,
    -2.342528204787e-05,-1.497469990783e-05,-6.601120774678e-06,-1.079324278478e-06,
    -1.860429947731e-20,-3.292669376149e-06,-9.364203078374e-06,-1.576240593594e-05,
    -2.009522197298e-05,-2.086449224427e-05,-1.792695170889e-05,-1.244667577937e-05,
    -6.392088454982e-06,-1.787430710786e-06,1.185309152968e-21,-1.311295208702e-06,
    -4.901719800753e-06,-9.222906665082e-06,-1.259691958815e-05,-1.38138211328e-05,
    -1.251737502359e-05,-9.259943622206e-06,-5.233918862656e-06,-1.800710705254e-06,
    -3.142097840574e-21,-2.138538003801e-07,-2.090915730816e-06,-4.734928834006e-06,
    -7.067900643233e-06,-8.224187754592e-06,-7.833551991894e-06,-6.103389109826e-06,
    -3.689820853184e-06,-1.423309705503e-06,-1.386565374155e-20,2.484657561087e-07,
    -5.671379176015e-07,-1.980110233704e-06,-3.370874617167e-06,-4.20192725526e-06,
    -4.197432244674e-06,-3.409395974724e-06,-2.159509499299e-06
};
